Change the XML format: <Root> element is replaced by <ui>, <menu> element
authorMatthias Clasen <maclas@gmx.de>
Wed, 27 Aug 2003 22:22:28 +0000 (22:22 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 27 Aug 2003 22:22:28 +0000 (22:22 +0000)
commitcbc20c4dde539ed01dede8356d9cd1dc56479799
tree7f01eba754c3806ac3b7c9101f5feb7ed7023f50
parentbebc663c5a27c63246956ecc10c0c4c953d26ba7
Change the XML format: <Root> element is replaced by <ui>, <menu> element

2003-08-28  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkuimanager.c: Change the XML format:
<Root> element is replaced by <ui>,
<menu> element is replaced by <menubar>,
<submenu> element is replaced by <menu>,
<dockitem> element is replaced by <toolbar>,
<popups> element is gone,
verb attribute is replaced by action,
name defaults to action or the element name.

* gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by GtkActionEntry
and GtkRadioActionEntry. GtkActionEntry is simplified by removing
the user_data, entry_type and extra_data fields, GtkRadioActionEntry is
further simplified by removing the callback. The user_data can now be
specified as an argument to gtk_action_group_add_actions(). There is
a new method gtk_action_group_add_radio_actions(), which is similar
to gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
and a callback parameter in addition to the user_data. The callback
is connected to the ::changed signal of the first group member.
There are _full() variants taking a GDestroyNotify of
gtk_action_group_add_[radio_]actions().

* gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
on every member of the radio group when the active member is changed.
Add an integer property "value", and a getter for the value of "value"
on the currently active group member.

* tests/testactions.c:
* tests/testmerge.c:
* tests/merge-[123].ui:
* demos/gtk-demo/appwindow.c: Adjust to these changes.

* gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
17 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
demos/gtk-demo/appwindow.c
gtk/gtkactiongroup.c
gtk/gtkactiongroup.h
gtk/gtkradioaction.c
gtk/gtkradioaction.h
gtk/gtktoolbar.c
gtk/gtkuimanager.c
tests/merge-1.ui
tests/merge-2.ui
tests/merge-3.ui
tests/testactions.c
tests/testmerge.c